import type {AxiosRequestConfig,AxiosResponse} from 'axios'

//定义请求拦截接口类型
export interface RequestInterceptors {
    requestLan?:(config:AxiosRequestConfig)=>AxiosRequestConfig,
    resquestErr?:(err:any)=>any,
    responseLan?:<T = AxiosResponse>(config:T)=>T,
    responseErr?:(err:any)=>any
}

export interface RequestConnfig extends AxiosRequestConfig{
    interceptors?:RequestInterceptors
 }